package test3_13.Car;

public class Homework7_4_Car {
    /*
    定义一个汽车类（Car），属性有颜色，品牌，车牌号，价格，并实例化两个对象，给属性赋值，并输入属性值
     */
    public static void main(String[] args) {

        Car car1 = new Car();
        car1.color = "白色";
        car1.brand = "保时捷";
        car1.carNum = "浙B.11111";
        car1.price = 1000000;

        Car car2 = new Car();
        car2.color = "粉色";
        car2.brand = "大众";
        car2.carNum = "黑A.22222";
        car2.price = 2000000;
    }
}
